/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pb138.jprvyd.gui.form;

/**
 *
 * @author Jan
 */
public class TaxReturnForm extends javax.swing.JFrame {
    

    
    public TaxReturnForm(int invoicesSumTotal, int paymentsSumTotal) {
        initComponents();
        
        labelInvoicesSumTotal.setText(Integer.toString(invoicesSumTotal));
        labelPaymentsSumTotal.setText(Integer.toString(paymentsSumTotal));
        
        int difference = paymentsSumTotal - invoicesSumTotal;
        
        labelDiffSums.setText(Integer.toString(difference));        
        
    }     

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        invoicesSumTotal = new javax.swing.JLabel();
        labelSurname = new javax.swing.JLabel();
        labelStreet = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        labelInvoicesSumTotal = new javax.swing.JLabel();
        labelPaymentsSumTotal = new javax.swing.JLabel();
        labelDiffSums = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("JPrVyd - Managing contacts");

        invoicesSumTotal.setText("1) Invoices total sum:");

        labelSurname.setText("2) Payments total sum:");

        labelStreet.setText("3) Fields 2) - 1):");

        jLabel1.setText("Kč");

        jLabel2.setText("Kč");

        jLabel3.setText("Kč");

        labelInvoicesSumTotal.setText("##");
        labelInvoicesSumTotal.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

        labelPaymentsSumTotal.setText("##");
        labelPaymentsSumTotal.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

        labelDiffSums.setText("##");
        labelDiffSums.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelStreet)
                    .addComponent(labelSurname)
                    .addComponent(invoicesSumTotal))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 171, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(labelInvoicesSumTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(labelPaymentsSumTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel2))
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(labelDiffSums)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel3))))
                .addContainerGap(12, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(35, 35, 35)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(invoicesSumTotal)
                    .addComponent(jLabel1)
                    .addComponent(labelInvoicesSumTotal))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelSurname)
                    .addComponent(jLabel2)
                    .addComponent(labelPaymentsSumTotal))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelStreet)
                    .addComponent(jLabel3)
                    .addComponent(labelDiffSums))
                .addContainerGap(44, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

 
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel invoicesSumTotal;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel labelDiffSums;
    private javax.swing.JLabel labelInvoicesSumTotal;
    private javax.swing.JLabel labelPaymentsSumTotal;
    private javax.swing.JLabel labelStreet;
    private javax.swing.JLabel labelSurname;
    // End of variables declaration//GEN-END:variables
}
